$(document).ready(function () {
    initTable();
})

function  initTable() {

    $('#list').bootstrapTable({
        url:'mock/employees.json',
        columns:columns,
        toolbar:'#toolbar',
        clickToSelect:true,
        singleSelect:true,
        pagination:true
    })

}

var columns = [
    {
        checkbox:true
    },
    {
        field:'name',
        title:'姓名'
    },{
        field:'gender',
        title:'性别'
    }
]